package com.example.HeadFirstDemo.Factory;

import com.example.HeadFirstDemo.Factory.AbstractFactory.LowFactory;
import com.example.HeadFirstDemo.Factory.AbstractFactory.Seat;
import org.junit.Test;

public class TestCase {
    @Test
    public void simpleFactoryTest(){
        Car car=SimpleFactory.createCar("Benz");
        car.run();
    }

    @Test
    public void benzFactoryTest(){
        Car car=new BenzFactory().createCar();
        car.run();
    }

    @Test
    public void abstractFactoryTest(){
        Seat car=new LowFactory().createSeat();
        car.seat();
    }
}
